package 继承.继承的语法;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 姚东名
 * Date: 2024-06-16
 * Time: 14:30
 */
public class Dog extends Animal {
    public void bark() {
        System.out.println(this.name + "汪汪叫");
    }
}

